package com.example.mybatisplus.model.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 系统参数(Config)数据返回体
 *
 * @author 宋义州
 * @since 2023-09-02 09:21:57
 */
@Data
@Schema(description = "系统参数数据返回体")
public class ConfigResult {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "编码")
    private String code;

    @Schema(description = "参数值")
    private String value;

    @Schema(description = "描述")
    private String introduce;

    @Schema(description = "启用状态(0：启用、1：禁用)")
    private Integer status;

    @Schema(description = "删除标记(0：未删除、1：已删除)")
    private Integer delFlag;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private Long createUser;

    @Schema(description = "创建人名称")
    private String createUserName;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @Schema(description = "更新人")
    private Long updateUser;

    @Schema(description = "更新人名称")
    private String updateUserName;
}

